package cn.edu.hitwh.yibao.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@Controller
public class LoginController {
	@GetMapping("/toLogin")
	public String toLogin() {
		return "/login";
	}
	
	@PostMapping("/login")
	public String login() {
		return "/main";
	}
	
	@GetMapping("/login")
	public String loginMain() {
		return "/main";
	}
}
